home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 89
/
maccd 89.iso
/
utilities
/
Mac OS X
/
ProcessWizard.dmg
/
ProcessWizard
/
ProcessWizard Daemon.app
/
Contents
/
Resources
/
kill.pl
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Perl Script
|
2002-01-24
|
311 b
|
18 lines
#!/usr/bin/perl
#
# USAGE : kill.pl <pid>
#($tmppath = $ARGV[0]) =~ s/(\&|'|")/\\\1/g; # escape &, ' and " chars with \
$pid = $ARGV[0];
open SHELL2, "kill -9 $pid |" or die "probleme";
# STDOUT:
# ou
# STDERR: <pid>: Operation not permitted denied
# ou: <pid>: No such process
close SHELL2;
print ;